<?php
require_once $_SERVER['DOCUMENT_ROOT'].'/actions/admin/AdminAction.php';
require_once $_SERVER['DOCUMENT_ROOT'].'/actions/Response.php';
require_once $_SERVER['DOCUMENT_ROOT'].'/model/Service/Service.php';
require_once $_SERVER['DOCUMENT_ROOT'].'/model/Service/ServiceFactory.php';

final class PersonListAction extends AdminAction {
	protected function execute(Response $response) {
		$serviceFactory = new ServiceFactory();
		$service = $serviceFactory->getService('PersonService');
		$persons = $service->getAll();
		$response->setParameter('persons', $persons);
	}
}
?>